home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group94a.txt / 000088_icon-group-sender _Wed Apr 20 00:10:16 1994.msg < prev    next >
Internet Message Format  |  1994-08-19  |  970b

  1. Received: by cheltenham.cs.arizona.edu; Wed, 20 Apr 1994 08:31:17 MST
  2. Via: uk.ac.edinburgh.festival; Wed, 20 Apr 1994 08:09:49 +0100
  3. Date: 20 Apr 94 08:09:43 BST
  4. From: R J Hare <rjhare@festival.ed.ac.uk>
  5. Subject: Random numbers
  6. To: icon-group@cs.arizona.edu
  7. Organisation: Edinburgh University Computing Service
  8. Message-Id: <9404200809.aa18437@uk.ac.ed.festival>
  9. Status: R
  10. Errors-To: icon-group-errors@cs.arizona.edu
  11.  
  12. Thank you all for responding to my query about 'strange' behaviour by the
  13. random operator. I had always assumed that if a value was 'intrinsically'
  14. numeric, it e was forced to the relevant type. I now see I was mistaken -
  15. another valuable lesson.
  16.  
  17. For what it's worth, the value for range was set like this:
  18.  
  19. x:=arglist[1]|50
  20.  
  21. where arglist is the run-time argument list given to the program. If the
  22. argument list is not given, the value defaults to 50 and as 50 *is* an
  23. integer, and all is well...
  24.  
  25. Thanks again.
  26.  
  27. Roger Hare
  28.